package com.hnit.service;

import com.hnit.web.DTO.OrdersDTO;

import java.util.Map;

public interface PaymentService {
    /**
     * 创建支付宝订单
     */
    String createAlipayOrder(OrdersDTO order) throws Exception;

    /**
     * 查询支付状态
     */
    boolean queryPaymentStatus(String orderId) throws Exception;

    /**
     * 验证并处理支付通知
     */
    boolean verifyAndHandleNotify(Map<String, String> params) throws Exception;
}
